package config;



import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class gatewayConfig {
//    @Bean
//    //路由构建器
//    public RouteLocator customerRouteLocator(RouteLocatorBuilder routeLocatorBuilder) {
//        RouteLocatorBuilder.Builder routes = routeLocatorBuilder.routes();
//        routes.route("path_route_yan",
//                r -> r.path("/guonei")//这个意思是，现在访问localhost:9528将会转发到http://news.baidu.com/guonei
//                        .uri("http://news.baidu.com/guonei")).build();
//
//        return routes.build();
//    }

}
